package com.hengtian.roastwall.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hengtian.roastwall.entity.User;
import com.hengtian.roastwall.entity.dto.RegisterDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    User getUserInfo(String userName);

    List<String> getAuthorities(User user);

    List<User> getAllUsers();

    void addUser(User user);

    int registerUser(RegisterDto dto);

    User getUserByUserName(String userName);
}
